home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Macintosh Demo Applications CD
/
Apple-MacintoshDemoApplicationsCD-1.0-1992.iso
/
More Information
/
QuickMail
/
Installer Resources
/
Scripts
/
MCIMail.Script 3.0B
< prev
next >
Wrap
Text File
|
1992-03-20
|
3KB
|
145 lines
* MCI Mail.ADVANCED.Script, for QuickMail™
* Copyright © 1988, 1989 CE Software, Inc.
*
* Version 3.0B
*
* This is a simple script for the Telecom Bridge to log onto MCI Mail via Tymnet
* Since MCI Mail does not support XMODEM binary file transfer, this script
* doesn't either. therefore if you send a message with an enclosure
* to MCI Mail, the enclosure will NOT be sent.
*
* MCI Mail recently switched to all-Advanced service, so we no longer supply
* a "Basic" service script. Also, MCI Mail now uses a single 800 number to
* call in, so the use the 2400 baud number of 1-800-456-6245 instead of
* Tymnet.
*
* ----------------------------------------------------------------------------
* Revision History
*
* 12/8/88 - Bill Davis and Dave Loverink of CE Software.
* Account for bad or missing addresses and drafts. Changed each TYPE command
* to start with a ^X, which erases everything typed on the line to that
* point; this may help reduce line noise problems. MCI Mail responds by typing
* “XXX” and either waiting for you to re-enter the line or by redisplaying the
* prompt.
*
* 3/28/89 - Bill Davis of CE Software
* Modified to set account options to PAPER terminal type and 80 character
* lines, and to make the changes TEMPorary instead of PERManent. The script
* shipped with 2.0 had already been modified to set the PAGE depth (length)
* to 100 lines per page. That was done to avoid the “Press <return> to
* continue” prompt MCI would send on some MCI accounts.
*
* ----------------------------------------------------------------------------
*
* This is called to log us into MCI Mail
*
:IN
OOPS 30,FAILURE
PAUSE 8
TYPE ^M
WAIT user name:
TYPE ^X«LOGID»^M
WAIT Password:
TYPE ^X«PASSWORD»^M
NOTMAIL no messages waiting
WAIT Command:
* set account options to Paper terminal, 80 char lines, 100 line pages
* and make the changes temporary, not permanent, so we don’t screw up
* someone’s preferred settings.
TYPE ^Xaccount^M
WAIT Yes or No:
TYPE ^Xno^M
WAIT change:
TYPE ^Xpage^M
WAIT depth:
TYPE ^X100^M
WAIT change:
TYPE ^Xline^M
WAIT length:
TYPE ^X80^M
WAIT change:
TYPE ^Xterm^M
WAIT terminal:
TYPE ^Xpaper^M
WAIT change:
TYPE ^X^M
WAIT or TEMPorary:
TYPE ^Xtemp^M
WAIT Command:
SUCCESS
*
* This is called to send one piece of mail
*
:SEND
OOPS 60,FAILURE
TYPE ^XCreate^M
WAIT TO:
TYPE ^X«ADDRESS»^M
* 4 Alerts added 12/8/88 to account for bad or missing addresses
ALERT 11,S1,There must be
ALERT 12,S1,in the TO field
ALERT 13,S2,not found in
ALERT 14,S2,EMS Delivery
* end of 12/8/88 changes
WAIT TO:
TYPE ^X^M
WAIT CC:
TYPE ^X^M
WAIT Subject:
TYPE ^X«TOPIC»^M
WAIT to end.)
TYPE ^XAttn:«NAME»^M
DUMP ^J
TYPE ^X/^M
WAIT Handling:
TYPE ^X^M
WAIT Send?
TYPE ^XY^M
WAIT Command:
SUCCESS
*
:S1
ERRORINADDRESS
WAIT TO:
TYPE ^X/^M
WAIT Command:
SUCCESS
*
:S2
ERRORINADDRESS
WAIT the number:
TYPE ^X0^M
WAIT TO:
TYPE ^X/^M
WAIT Command:
SUCCESS
*
* This is called to receive mail. It is called continually with increasing
* values in «COUNT», until FAILURE occurs. You can put all reads into one
* listing, if you wish
*
:RECEIVE
OOPS 60,FAILURE
TYPE ^XRead Inbox^M
ALERT 2,R10,Your INBOX is empty.
:R1
ALERT 1,R10,Your READ request is now complete.
WAIT ^M
BUFFER Command:
ALERT 2,,
RECEIVE Subject:,Attn:,From:,/ MCI ID: ,
TYPE ^XNext^M
GOTO R1
:R10
WAIT Command:
FAILURE
*
* This logs us off MCI Mail
*
:BYE
TYPE ^XEXIT^M
ALERT 1,SUCCESS,log in:
PAUSE 10
SUCCESS